from urllib import request
from bs4 import BeautifulSoup


url = "https://www.xiaohongshu.com/"
response = request.urlopen(url).read().decode('utf8')
response = BeautifulSoup(response, 'html.parser')
print(response.title)
print(response.title.text)
